<table class="table table-striped table-hover">
    <thead>
        <tr>

            <g:sortableColumn property="nome" title="${message(code: 'turma.nome.label', default: 'Nome')}" />

            <th><g:message code="turma.serie.label" default="Serie" /></th>
            
            <th><g:message code="turma.ano.label" default="Ano Letivo" /></th>

        </tr>
    </thead>
    <tbody>
    <g:each in="${turmaInstanceList}" status="i" var="turmaInstance">
        <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

            <td><g:link action="show" id="${turmaInstance.id}">${fieldValue(bean: turmaInstance, field: "nome")}</g:link></td>

            <td>${fieldValue(bean: turmaInstance, field: "serie")}</td>
            
            <td>${fieldValue(bean: turmaInstance, field: "ano")}</td>

        </tr>
    </g:each>
    </tbody>
</table>
